﻿using System;
using System.Collections.Generic;
using Color = System.Drawing.Color;
using SwinGame;

namespace Gundam_2._0_Alpha.src
{
    public class ImageButton: Button
    {
        private Sprite buttonSprite;

        public ImageButton(KeyCode k, Sprite buttonSprite, bool isActive, int imagePosX, int imagePosY)
            : base(k, isActive, imagePosX, imagePosY)
        {
            this.buttonSprite = buttonSprite;
            this.buttonSprite.X = ButtonPos.X;
            this.buttonSprite.Y = ButtonPos.Y;
        }

        public override void Draw()
        {        
            buttonSprite.Draw();
            buttonSprite.UpdateAnimation();            
        }
    }
}
